package com.test.qpbgboot.schedule.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalTime;

@Data
public class RoomScheduleSaveParam {
    @ApiModelProperty(value = "房间id")
    @NotNull(message = "房间id不能为空")
    private Long roomId;
    @ApiModelProperty(value = "排班日期")
    @NotNull(message = "排班日期不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate scheduleDate;
    @ApiModelProperty(value = "排班开始时间")
    @NotNull(message = "排班时间不能为空")
    private LocalTime startTime;
    @ApiModelProperty(value = "排班结束时间")
    @NotNull(message = "排班时间不能为空")
    private LocalTime endTime;
    @ApiModelProperty(value = "房间状态 0不可用 1空闲 2已预约 3已使用")
    @NotNull(message = "房间状态不能为空")
    private String status;
    @ApiModelProperty(value = "订单id")
    private Long orderId;
}
